package ch01.three;


import ch01.MallardDuck;
import ch01.three.impl.FlyRocketPowered;

/**
 * Created by lenovo on 2017/10/30.
 */
public class MiniDuckSimulator {
    public static void main(String[] args){
        Duck mallard=new ch01.three.MallardDuck();
        mallard.performFly();
        mallard.performQuack();

        Duck model=new ModelDuck();
        model.setFlyBehavior(new FlyRocketPowered());
        model.performFly();


    }
}
